<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8" />
    <title>Title</title>
</head>
<body>

<h1>用户列表</h1>

<table>
    <tr>
        <th>编号</th>
        <th>名字</th>
        <th>地址</th>
        <th>Email</th>
        <th>操作</th>
    </tr>

    <tr th:each="user:${users}"><!--循环userList,以users作为形参-->
        <td th:text="${user.id}"></td>
        <td th:text="${user.name}"></td>
        <td th:text="${user.email}"></td>
        <td><a  th:href="@{/toupdate(id=${user.id})}">修改</a>&nbsp;&nbsp;<a  th:href="@{/del(id=${user.id})}">删除</a></td>
    </tr>
</table>


<h1 th:text="${session.d.password}"></h1>
<h1 th:text="${session.ad.password}"></h1>

<h1 th:text="${a.password}"></h1>

<h1 th:text="${a.userName}"></h1>



</body>
</html>